My function is defined like this in a header:
Code:
typedef int(*TFComp)(const void *, const void *);
And I define it like this in a particular program:
Code:
int cmp(const Ax m, const Ax n)
{
...
}
I use it in another function, defined like this:
Code:
void *Locate(..., TFComp cmp)
Ax is a pointer to a struct.
I get this warning message from the compiler:
[Warning] passing arg 5 of `Locate' from incompatible pointer type
It runs fine, the function does it's job, but I don't understand what that warning means.